
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-ok"></use>
                    </svg>
                    <div class="name">ok</div>
                    <div class="fontclass">#fs-ok</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-project"></use>
                    </svg>
                    <div class="name">project-solid-list</div>
                    <div class="fontclass">#fs-project</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-angle-down"></use>
                    </svg>
                    <div class="name">angle-down</div>
                    <div class="fontclass">#fs-angle-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-angle-left"></use>
                    </svg>
                    <div class="name">angle-left</div>
                    <div class="fontclass">#fs-angle-left</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-angle-right"></use>
                    </svg>
                    <div class="name">angle-right</div>
                    <div class="fontclass">#fs-angle-right</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-angle-up"></use>
                    </svg>
                    <div class="name">angle-up</div>
                    <div class="fontclass">#fs-angle-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-volume"></use>
                    </svg>
                    <div class="name">volume-medium</div>
                    <div class="fontclass">#fs-volume</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-mute"></use>
                    </svg>
                    <div class="name">volume-mute2</div>
                    <div class="fontclass">#fs-mute</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-icheck-default"></use>
                    </svg>
                    <div class="name">复选框_未选择</div>
                    <div class="fontclass">#fs-icheck-default</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-icheck-checked"></use>
                    </svg>
                    <div class="name">复选框_已选择</div>
                    <div class="fontclass">#fs-icheck-checked</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-qq"></use>
                    </svg>
                    <div class="name">qq</div>
                    <div class="fontclass">#fs-qq</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-max"></use>
                    </svg>
                    <div class="name">方形未选中</div>
                    <div class="fontclass">#fs-max</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-close"></use>
                    </svg>
                    <div class="name">关闭1</div>
                    <div class="fontclass">#fs-close</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-resize-mac"></use>
                    </svg>
                    <div class="name">加号1</div>
                    <div class="fontclass">#fs-resize-mac</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-min"></use>
                    </svg>
                    <div class="name">减号</div>
                    <div class="fontclass">#fs-min</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-rectangle2"></use>
                    </svg>
                    <div class="name">广场_square157</div>
                    <div class="fontclass">#fs-rectangle2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-rectangle-remove"></use>
                    </svg>
                    <div class="name">广场_square161</div>
                    <div class="fontclass">#fs-rectangle-remove</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-prev"></use>
                    </svg>
                    <div class="name">回来_back41</div>
                    <div class="fontclass">#fs-prev</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-zoom-out"></use>
                    </svg>
                    <div class="name">减去_minus81</div>
                    <div class="fontclass">#fs-zoom-out</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-web"></use>
                    </svg>
                    <div class="name">全球_global26</div>
                    <div class="fontclass">#fs-web</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-add"></use>
                    </svg>
                    <div class="name">添加_add146</div>
                    <div class="fontclass">#fs-add</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-zoom-in"></use>
                    </svg>
                    <div class="name">添加_add155</div>
                    <div class="fontclass">#fs-zoom-in</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-save"></use>
                    </svg>
                    <div class="name">下载_download139</div>
                    <div class="fontclass">#fs-save</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-delete"></use>
                    </svg>
                    <div class="name">循环_recycle62</div>
                    <div class="fontclass">#fs-delete</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-chat"></use>
                    </svg>
                    <div class="name">语音_speech97</div>
                    <div class="fontclass">#fs-chat</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-external"></use>
                    </svg>
                    <div class="name">注销_logout9</div>
                    <div class="fontclass">#fs-external</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-eraser"></use>
                    </svg>
                    <div class="name">eraser</div>
                    <div class="fontclass">#fs-eraser</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-paint"></use>
                    </svg>
                    <div class="name">format-paint</div>
                    <div class="fontclass">#fs-paint</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-homepage"></use>
                    </svg>
                    <div class="name">web</div>
                    <div class="fontclass">#fs-homepage</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-mail"></use>
                    </svg>
                    <div class="name">mail</div>
                    <div class="fontclass">#fs-mail</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-resize"></use>
                    </svg>
                    <div class="name">window-restore-s-o</div>
                    <div class="fontclass">#fs-resize</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-pause"></use>
                    </svg>
                    <div class="name">pause</div>
                    <div class="fontclass">#fs-pause</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-play"></use>
                    </svg>
                    <div class="name">play</div>
                    <div class="fontclass">#fs-play</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-cuboid"></use>
                    </svg>
                    <div class="name">codepen</div>
                    <div class="fontclass">#fs-cuboid</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-shape-remove"></use>
                    </svg>
                    <div class="name">select-off</div>
                    <div class="fontclass">#fs-shape-remove</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-curve"></use>
                    </svg>
                    <div class="name">vector-curve</div>
                    <div class="fontclass">#fs-curve</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-polygon"></use>
                    </svg>
                    <div class="name">vector-polygon</div>
                    <div class="fontclass">#fs-polygon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-rectangle"></use>
                    </svg>
                    <div class="name">vector-square</div>
                    <div class="fontclass">#fs-rectangle</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-hand"></use>
                    </svg>
                    <div class="name">hand-paper-o</div>
                    <div class="fontclass">#fs-hand</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-zoom-fit"></use>
                    </svg>
                    <div class="name">image</div>
                    <div class="fontclass">#fs-zoom-fit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-iradio-checked"></use>
                    </svg>
                    <div class="name">选择框2</div>
                    <div class="fontclass">#fs-iradio-checked</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-iradio-default"></use>
                    </svg>
                    <div class="name">选择框1</div>
                    <div class="fontclass">#fs-iradio-default</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-sync"></use>
                    </svg>
                    <div class="name">同步</div>
                    <div class="fontclass">#fs-sync</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-menu"></use>
                    </svg>
                    <div class="name">FK_menu</div>
                    <div class="fontclass">#fs-menu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-next"></use>
                    </svg>
                    <div class="name">回来_back41</div>
                    <div class="fontclass">#fs-next</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-label-suggest"></use>
                    </svg>
                    <div class="name">推荐</div>
                    <div class="fontclass">#fs-label-suggest</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#fs-label-suggest-en"></use>
                    </svg>
                    <div class="name">推荐</div>
                    <div class="fontclass">#fs-label-suggest-en</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#fs-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
